html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  font-size: 40px;
  font-family: Verdana, Arial, sans-serif;
  overflow: hidden;
  text-align: center;
}

button {
  min-width: 150px;
  min-height: 100px;
  font-size: 40px;
}

.info-bar {
  margin: 15px;
  padding: 15px;
  border: 1px solid #ccc;
  border-radius: 5px;
  text-align: center;
}

#player-role {
  display: none;
}

#player-role > * {
  vertical-align: middle;
}

#throw {
  display: none;
}

#reload {
  display: none;
}

#player-icon {
  display: inline-block;
  border-radius: 20px;
  width: 40px;
  height: 40px;
}

.player-A-icon {
  background: url(../images/player-icon.png) 0 0 no-repeat;
}

.player-B-icon {
  background: url(../images/player-icon.png) 0 -49px no-repeat;
}

.tip {
  position: absolute;
  z-index: 50;
  color: #274;
  background-color: #e4ffcd;
  -webkit-box-shadow: 0px 1px 6px black;
}

#main-info {
  display: none;
}

#main-info.show {
  display: block;
}

#tip {
  display: inline-block;
  position: fixed;
  padding: 10px 15px;
  text-align: center;
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
  min-width: 70px;
  max-width: 350px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  -webkit-transition: bottom .5s ease-out 0s;
  bottom: -72px;
  text-align: center;
}

#tip.show {
  bottom: 0;
}

#static-dice {
  position: absolute;
  top: 60%;
  left: 45%;
  width: 100px;
  height: 100px;
  background-image: url(../images/dice/1.png);
  background-size: cover;
  border: 3px solid rgba(243, 178, 49, 1);
  border-radius: 9px;
  opacity: 0;
  -webkit-transition: opacity .5s ease-out 0s;
}

#static-dice.show {
  opacity: 1;
}

#dice-wrapper {
  position: absolute;
  top: 160px;
  left: 0;
  width: 100%;
  height: 700px;
  -webkit-perspective: 800;
  -webkit-perspective-origin: 50% 225px;
  -webkit-perspective-origin-x: 50%;
  -webkit-perspective-origin-y: 225px;
  opacity: 0;
  -webkit-transition: opacity .5s ease-out 0s;
}

#dice-wrapper.show {
  opacity: 1;
}

#dice {
  margin: 0 auto;
  height: 100px;
  width: 100px;
  -webkit-transform-style: preserve-3d;
  -webkit-transition: -webkit-transform 1.5s ease-in-out;
  -webkit-transform: translateX(38px) translateY(36px) translateZ(10px) rotateX(-1620deg) rotateY(1080deg) rotateZ(1440deg);
  opacity: 0.92;
}

#dice.backfaces .plane {
  -webkit-backface-visibility: visible;
}

.plane {
  position: absolute;
  height: 100px;
  width: 100px;
  border: 3px solid rgba(243, 178, 49, 1);
  -webkit-border-radius: 12px;
  -webkit-box-sizing: border-box;
  text-align: center;
  font-family: Times, serif;
  font-size: 124pt;
  color: black;
  background-color: white;
  -webkit-transition: -webkit-transform 2s, opacity 2s;
  -webkit-backface-visibility: hidden;
  box-sizing: border-box;
  background-size: cover;
}

#dice > .one {
  -webkit-transform: rotateX(90deg) translateZ(50px);
  background: url(../images/dice/1.png) center center no-repeat;
}

#dice > .two {
  -webkit-transform: translateZ(50px);
  background: url(../images/dice/2.png) center center no-repeat;
}

#dice > .three {
  -webkit-transform: rotateY(90deg) translateZ(50px);
  background: url(../images/dice/3.png) center center no-repeat;
}

#dice > .four {
  -webkit-transform: rotateY(180deg) translateZ(50px);
  background: url(../images/dice/4.png) center center no-repeat;
}

#dice > .five {
  -webkit-transform: rotateY(-90deg) translateZ(50px);
  background: url(../images/dice/5.png) center center no-repeat;
}

#dice > .six {
  -webkit-transform: rotateX(-90deg) translateZ(50px);
  background: url(../images/dice/6.png) center center no-repeat;
}